#ifndef CHARACTERCLASSFORM_H
#define CHARACTERCLASSFORM_H


#include "characterclassesmodel.h"


#include <campaign.h>


#include <QWidget>
#include <QSplitter>
#include <QTableWidget>


namespace Ui {
class CharacterClassForm;
}

class CharacterClassForm : public QWidget
{
    Q_OBJECT
    
public:
    explicit CharacterClassForm(QWidget *parent = 0);
    ~CharacterClassForm();

    void setCampaign(Campaign* campaign);

public slots:

    void onCharacterClassAdded();


protected slots:

    void onTabCloseRequested(int index);
    void onCustomContextMenuRequested(const QPoint &pos);
    void onCharacterClassChanged();


private:


    Ui::CharacterClassForm *ui;

    QSplitter* m_splitter;
    QTabWidget* m_tabWidget;

    QPointer<Campaign> m_campaign;


};

#endif // CHARACTERCLASSFORM_H
